<div class="form-container">
<div class="validation-errors" id="validationErrors" style="display:none;"></div>
<div class="walk-register-buttons" style="float: left;">
<a href="<?php echo( base_url() ); ?>cmb/member/home/<?php echo( $urlKey ); ?>/" target="_self">Member Home</a>
</div>
<div class="walk-register-buttons" style="float: right;">
	<a href="<?php echo( base_url() ); ?>cmb/member/homepage_logout/"><img src="<?php echo( base_url() ); ?>assets/images/buttons/logout1.gif" border="0" /></a>
</div>
<?php
	$this->load->model('proxies/Person_proxy');
	
	Includes::IncludeFile( Includes::$FORM );
	Includes::IncludeFile( Includes::$SPACER );
	$codebase = explode(',',$this->config->item('code_base'));

	Spacer::Render(0, 50);

	echo('<b>Member Administrative Tasks</b>');
	echo('<hr />');

	if ($isAdmin)
	{
		echo "<p>";
		echo "<br/>";
		echo "<br/>";
		echo '<a href='.base_url().'cmb/member_registration/release_check/'.$urlKey.'/ target="_blank">Release CMB Registration Checks</a>';
		echo "<br/>";
	}

	if (($isAdmin or ($this->Person_proxy->isPersonGroupRole( $loggedinpersonid, "balavihar", "user" ))) and in_array("members",$codebase))
	{
		echo "<p>";
		echo "<br/>";
		echo "<br/>";
		echo '<a href='.base_url().'cmb/member_registration/admin_get_balavihar_attendance/'.$urlKey.'/ target="_blank">Update Balavihar Attendance</a>';
		echo "<br/>";
	}
/*
	if (($isAdmin or ($this->Person_proxy->isPersonGroupRole( $loggedinpersonid, "mahasamadhi", "admin" ))) and in_array("msc",$codebase))
	{
		echo "<p>";
		echo "<br/>";
		echo "<br/>";
		echo '<a href='.base_url().'mahasamadhi/mahasamadhi_registration/release_check_event/'.$urlKey.'/ target="_self">Release Mahasamadhi Registration Checks</a>';
		echo "<br/>";
	}

	if (($isAdmin or ($this->Person_proxy->isPersonGroupRole( $loggedinpersonid, "mahasamadhi", "admin" ))) and in_array("msc",$codebase))
	{
		echo "<p>";
		echo "<br/>";
		echo "<br/>";
		echo '<a href='.base_url().'mahasamadhi/mahasamadhi_registration/admin_edit_ms_registrations/'.$urlKey.'/ target="_self">Edit Mahasamadhi Registrations</a>';
		echo "<br/>";
	}

	if (($isAdmin or ($this->Person_proxy->isPersonGroupRole( $loggedinpersonid, "mahasamadhi", "admin" ))) and in_array("msc",$codebase))
	{
		echo "<p>";
		echo "<br/>";
		echo "<br/>";
		echo '<a href='.base_url().'mahasamadhi/mahasamadhi_registration/admin_update_ms_registrations_hash/'.$urlKey.'/ target="_blank">Update MSC RegOBJ Hash</a>';
		echo "<br/>";
	}
*/

	$this->load->model('proxies/Person_proxy');
	if (($isAdmin or ($this->Person_proxy->isPersonGroupRole( $loggedinpersonid, "banquet", "admin" ))) and in_array("members",$codebase))
	{
		echo "<p>";
		echo "<br/>";
		echo "<br/>";
		echo '<a href='.base_url().'/annualbanquet/banquet_registration/release_check_event/'.$urlKey.'/ target="_blank">Release Banquet Registration Checks</a>';
		echo "<br/>";
	}

	if (($isAdmin or ($this->Person_proxy->isPersonGroupRole( $loggedinpersonid, "banquet", "admin" ))) and in_array("members",$codebase))
	{
		echo "<p>";
		echo "<br/>";
		echo "<br/>";
		echo '<a href='.base_url().'/annualbanquet/banquet_registration/admin_edit_bq_registrations/'.$urlKey.'/ target="_blank">Edit Banquet Registrations</a>';
		echo "<br/>";
	}
/*
	if (($isAdmin or ($this->Person_proxy->isPersonGroupRole( $loggedinpersonid, "spiritual", "admin" ))) and in_array("members",$codebase))
	{
		echo "<p>";
		echo "<br/>";
		echo "<br/>";
		echo '<a href='.base_url().'/swamivisits/event_registration/release_check_event/'.$urlKey.'/ target="_blank">Release Event Registration Checks</a>';
		echo "<br/>";
	}
*/
?>

    <div class="clear">
    </div>
</div>
